<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	response.setHeader("Pragma", "No-cache");
	response.setHeader("Cache-Control", "no-cache");
	response.setDateHeader("Expires", 0);
	response.setContentType("text/html;charset=UTF-8");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>日志</title>
  	<link rel="stylesheet" href="css/four.css" type="text/css"></link>
  	<script type="text/javascript" src="My97DatePicker/WdatePicker.js"></script>
  	<script type="text/javascript" src="js/four.js"></script>
</head>
  <body>
    <div class="topTitle">
  		&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/main_28.gif"/>&nbsp;日志查询
  	</div>
  	<br />
  	<form action="getAllByDate" method="post">
  	<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" class="table01">
 		 <tr> 
    		<td nowrap="nowrap" class="td_scheduleNow" align="center"">  
					 时间： <input id="d5221" name="star_time" class="Wdate" type="text" onfocus="var d5222=$dp.$('d5222');WdatePicker({skin:'ext',onpicked:function(){d5222.focus();},maxDate:'#F{$dp.$D(\'d5222\')}'});checkDate()" readonly="readonly" />
						至
					  <input id="d5222" name="end_time" class="Wdate" type="text" onfocus="WdatePicker({skin:'ext',minDate:'#F{$dp.$D(\'d5221\')}'});checkDate()" readonly="readonly"/>
											  
					<input name="Submit" id="searchSubmit" type="submit" disabled="disabled" value=" 查询日志 "/>
    		</td>
  		</tr>
  	</table>
  	</form> 
  		<table class="table_list">
 				<tr> 
				    <td nowrap="nowrap" class="td_scheduleList_top" align="center">用户名</td>
				    <td nowrap="nowrap" class="td_scheduleList_top" align="center">登录时间</td>
				    <td nowrap="nowrap" class="td_scheduleList_top" align="center">登出时间</td>
 				</tr>
 				<s:if test="logs.size()==0">
 				<tr>
 					<td nowrap="nowrap" class="td_03" align="center" colspan="3">未找到您需要的数据</td>
 				</tr>
 					
 				</s:if>
 				<s:iterator value="logs">
 				<tr>
 					<td nowrap="nowrap" class="td_03" align="center"><s:property value="employee.userName"/></td>
 					<td nowrap="nowrap" class="td_03" align="center"><s:date format="yyyy-MM-dd / HH:mm:ss" name="loginTime"/></td>
 					<td nowrap="nowrap" class="td_03" align="center"><s:date format="yyyy-MM-dd / HH:mm:ss" name="loginOut"/></td>
 				</tr>
 				</s:iterator>
  		</table>
  		
  			<div style="margin-left:80%;margin-top:5px;">
  				 <a href="getAllByDate?pb.currentPage=1">首页</a> 
  				 <s:if test="pb.prew">
  				 <a href="getAllByDate?pb.currentPage=${pb.currentPage-1}">上一页</a>
  				 </s:if>
  				  <s:if test="pb.prew==false">
  				 	 上一页
  				  </s:if>
  				 <s:if test="pb.next==false">
  				 	下一页
  				 </s:if>
  				 <s:if test="pb.next">
  					<a href="getAllByDate?pb.currentPage=${pb.currentPage+1}">下一页</a> 
  				 </s:if>
  				 <a href="getAllByDate?pb.currentPage=${pb.last}">末页</a>
  				 </div>
  </body>
</html>
